package cs.sxh.dao;

import cs.sxh.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author songxh
 * @create 2022-03-22-19:36
 */
public interface UserMapper {
    User queryUserByUidAndPassword(@Param("uid") String uid,@Param("u_password") String u_password);

    //修改密码
    int updatePassword(@Param("uid") String uid,@Param("u_password") String repassword);

    User queryUserById(@Param("id") int id);

    List<User> queryAllUser();

    int updateUser(User user);

    int deleteUser(@Param("id") int id);

    int addUser(User user);
}
